package com.xiang.dubbo.catmovie.consumer.quickstart;


import com.alibaba.dubbo.config.annotation.Reference;
import com.xiang.dubbo.catmovie.ServiceAPI;

import org.springframework.stereotype.Component;

@Component
public class QuickStartConsumer {

    //dubbo默认端口就是这个
    @Reference(url="dubbo://localhost:20880")
    ServiceAPI serviceAPI;

    public void sendMessage(String message){
        System.out.println(serviceAPI.sendMessage(message));
    }
}
